﻿@{
    ViewBag.Title = "描点";
}
@section Head{
    <script src="~/Scripts/raphael.js"></script>
    <script src="~/Scripts/http.js"></script>
    @Styles.Render("~/Content/kendo")
    @Scripts.Render("~/bundles/kendo")
}

<div id="map" data-role="map" class="k-map" style="position: relative;" tabindex="0">
    <div id="tool">
        <span id="markerTool" class="k-marker k-marker-pin-target" style="z-index: 800; left: 50px; top: 35px;"></span>
    </div>
    <div id="svg" style="width: 100%; height: 100%;"></div>
    <div id="marker"></div>
</div>
<input type="hidden" id="parkAreaId" value="@ViewBag.id" />
<div id="markerDialog" class="k-edit-form-container" style="width:100%;height: 100%">
    <div class="k-edit-label">名称：</div>
    <div class="k-edit-field">
        <input type="text" class="k-input k-textbox" data-bind="value:name" />
    </div>
    <div class="k-edit-label">是否启用：</div>
    <div class="k-edit-field">
        <select data-role="dropdownlist" data-bind="value:isEnable">
            <option value="true">是</option>
            <option value="false">否</option>
        </select>
    </div>
    <div class="k-edit-label">是否岔口：</div>
    <div class="k-edit-field">
        <select data-role="dropdownlist" data-bind="value:isFork">
            <option value="true">是</option>
            <option value="false">否</option>
        </select>
    </div>
    <div class="k-edit-label">是否电梯：</div>
    <div class="k-edit-field">
        <select data-role="dropdownlist" data-bind="value:isLift">
            <option value="true">是</option>
            <option value="false">否</option>
        </select>
    </div>
    <div class="k-edit-label">X轴：</div>
    <div class="k-edit-field">
        <input type="text" class="k-input k-textbox" data-bind="value:position.left" />
    </div>
    <div class="k-edit-label">Y轴：</div>
    <div class="k-edit-field">
        <input type="text" class="k-input k-textbox" data-bind="value:position.top" />
    </div>
    <div class="k-edit-label">二维码：</div>
    <div class="k-edit-field">
        <span data-bind="text:scanCode"></span>
    </div>
    <div class="k-edit-label">打印个数：</div>
    <div class="k-edit-field">
        <input type="text" class="k-input k-textbox" data-bind="value:printScanCodeCount" />
    </div>
    <div class="k-edit-label">互通柱子：</div>
    <div class="k-edit-field">
        <select id="selAccessTo" data-bind="value:accessTo,source:accessTos" multiple="multiple"></select>
    </div>
    <div class="k-edit-buttons k-state-default">
        <a class="k-button k-button-icontext k-primary k-grid-update" href="javascript:void(0);" id="markerSave"><span class="k-icon k-update"></span>更新</a>
        <a class="k-button k-button-icontext k-grid-cancel" href="javascript:void(0);" id="markerCancel"><span class="k-icon k-cancel"></span>取消</a>
    </div>
</div>
<div style="margin-top: 10px">
    <button class="k-button k-button-icontext k-grid-cancel" id="save">保存</button>
</div>
<script src="~/Scripts/markcoordinates.js"></script>